package com.mall.feign.clients;

import com.mall.autoconfig.interceptor.FeignInterceptor;
import com.mall.model.domain.UmsAdmin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-service-authority", configuration = FeignInterceptor.class)
public interface UserClient {
    @GetMapping("/admin/{id}}")
    UmsAdmin getId(@PathVariable("id") String id);
}
